package com.ccf.business.database.model.vo;

import com.service.database.model.DataModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;

/**
 * @author zhaoj
 * @create 2021/11/26
 */
@Getter
@Setter
@Builder
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="数据表返回的VO对象", description="")
public class TableVO {

    @ApiModelProperty(value = "数据源名称")
    private String datasourceName;

    @ApiModelProperty(value = "数据库名称")
    private String dbname;

    @ApiModelProperty(value = "表名")
    private String tableName;

    @ApiModelProperty(value = "表注释")
    private String comment;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "表数据总条数")
    private Long count;

    @ApiModelProperty(value = "列信息")
    private List<Map<String, Object>> columns;

    @ApiModelProperty(value = "表数据")
    private List<Map<String, Object>> datas;

}
